package com.ziyear.domain;

import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * 功能描述 : 车次信息的实体类
 *
 * @author Ziyear
 */
public class Train {


    private Integer trainId; // 序号
    private String trainNumber;// 车次
    private String startStation;// 起始站
    private String endStation; // 终点站
    private String startTime; // 开车时间
    private String endTime; // 到站时间
    private Timestamp addTime; // 添加日期
    private Integer shangWuNum; // 商务车厢数量，不保存数据库，生成座位使用
    private Integer yiDengNum;// 一等车厢数量，不保存数据库，生成座位使用
    private Integer erDengNum;// 二等车厢数量，不保存数据库，生成座位使用
    private Integer shangWu;// 剩余商务座位数量
    private BigDecimal shangWuPrice;// 商务价格
    private Integer yiDeng;//一等座位剩余数量
    private BigDecimal yiDengPrice;//一等座价格
    private Integer erDeng;//二等座剩余数量
    private BigDecimal erDengPrice;//二等座价格

    public Integer getTrainId() {
        return trainId;
    }

    public void setTrainId(Integer trainId) {
        this.trainId = trainId;
    }

    public String getTrainNumber() {
        return trainNumber;
    }

    public void setTrainNumber(String trainNumber) {
        this.trainNumber = trainNumber;
    }

    public String getStartStation() {
        return startStation;
    }

    public void setStartStation(String startStation) {
        this.startStation = startStation;
    }

    public String getEndStation() {
        return endStation;
    }

    public void setEndStation(String endStation) {
        this.endStation = endStation;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    public Integer getShangWu() {
        return shangWu;
    }

    public void setShangWu(Integer shangWu) {
        this.shangWu = shangWu;
    }

    public BigDecimal getShangWuPrice() {
        return shangWuPrice;
    }

    public void setShangWuPrice(BigDecimal shangWuPrice) {
        this.shangWuPrice = shangWuPrice;
    }

    public Integer getYiDeng() {
        return yiDeng;
    }

    public void setYiDeng(Integer yiDeng) {
        this.yiDeng = yiDeng;
    }

    public BigDecimal getYiDengPrice() {
        return yiDengPrice;
    }

    public void setYiDengPrice(BigDecimal yiDengPrice) {
        this.yiDengPrice = yiDengPrice;
    }

    public Integer getErDeng() {
        return erDeng;
    }

    public void setErDeng(Integer erDeng) {
        this.erDeng = erDeng;
    }

    public BigDecimal getErDengPrice() {
        return erDengPrice;
    }

    public void setErDengPrice(BigDecimal erDengPrice) {
        this.erDengPrice = erDengPrice;
    }

    public Integer getShangWuNum() {
        return shangWuNum;
    }

    public void setShangWuNum(Integer shangWuNum) {
        this.shangWuNum = shangWuNum;
    }

    public Integer getYiDengNum() {
        return yiDengNum;
    }

    public void setYiDengNum(Integer yiDengNum) {
        this.yiDengNum = yiDengNum;
    }

    public Integer getErDengNum() {
        return erDengNum;
    }

    public void setErDengNum(Integer erDengNum) {
        this.erDengNum = erDengNum;
    }

    public Train(Integer trainId, String trainNumber, String startStation, String endStation, String startTime, String endTime, Timestamp addTime, Integer shangWu, BigDecimal shangWuPrice, Integer yiDeng, BigDecimal yiDengPrice, Integer erDeng, BigDecimal erDengPrice) {
        this.trainId = trainId;
        this.trainNumber = trainNumber;
        this.startStation = startStation;
        this.endStation = endStation;
        this.startTime = startTime;
        this.endTime = endTime;
        this.addTime = addTime;
        this.shangWu = shangWu;
        this.shangWuPrice = shangWuPrice;
        this.yiDeng = yiDeng;
        this.yiDengPrice = yiDengPrice;
        this.erDeng = erDeng;
        this.erDengPrice = erDengPrice;
    }

    public Train() {
    }


}
